package org.mspring.platform.api.rss.elements;

import electric.xml.Element;

/**
 * 
 * @author Gao Youbo
 * @since 2013年7月26日
 */
public class TextInput extends SyndicatedElement {
    private static final long serialVersionUID = 1662731919595634430L;
    
    String name;

    public String getName() {
        return this.name;
    }

    public void setName(String paramString) {
        this.name = paramString;
    }

    public static TextInput getTextInput(Element paramElement) {
        TextInput localTextInput = null;
        DublinCore.init(paramElement);
        Element localElement1 = paramElement.getElement("textinput");
        if (localElement1 == null) {
            Element localElement2 = paramElement.getElement("channel");
            localElement1 = localElement2.getElement("textinput");
        }
        if (localElement1 != null) {
            localTextInput = new TextInput();
            localTextInput.setAbout(DublinCore.getNSAttrValue(localElement1, DublinCore.rdf, "about"));
            localTextInput.setTitle(DublinCore.getElementValue(localElement1, "title"));
            localTextInput.setDescription(DublinCore.getElementValue(localElement1, "description"));
            localTextInput.setName(DublinCore.getElementValue(localElement1, "name"));
            localTextInput.setLink(DublinCore.getElementValue(localElement1, "link"));
            DublinCore.setDublinCoreElements(localElement1, localTextInput);
        }
        return localTextInput;
    }
}